<template>
  <div v-if="show" class="empty-box">
    <n-empty :description="desc" size="large">
    </n-empty>
  </div>
</template>
<script setup>
   const props = defineProps({
      show:{
          type:Boolean,
          default:false
      },
      desc:{
          type:String,
          default:"你什么也找不到"
      },
      btnmsg:{
          type:String,
          default:"看看别的"
      },
      url:{
          type:String,
          default:"/"
      },
    })

    const handleOpen = ()=>{
      navigateTo(props.url || "/")
    }
</script>
<style scoped>
.empty-box{background:#f0f0f0;padding: 50px 0;}
</style>